#ifndef FATE_H
#define FATE_H

#include <QDialog>
#include <QPushButton>
#include <QMouseEvent>
#include <QLabel>
#include <QDateTime>
#include <QtGlobal>
#include <QSettings>
#include <QTextCodec>

class Fate : public QDialog
{
    Q_OBJECT

public:
    Fate(QWidget *parent = nullptr);
    ~Fate();

    void closeWindow();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

private:
    QPushButton *btnClose;

    int randomNum_1;
    int randomNum_2;

    QLabel *label_1;
    QStringList list;

    bool m_move = false;
    QPoint m_startPoint;
    QPoint m_windowPoint;
};

#endif // FATE_H
